// ramda 是完全符合函数式编程思维的库

// 函数式编程不只是不写class，不只是reducer这样的纯函数
// 柯里化
const R = require('ramda')
//柯里化

const addThreeNumbers = (x,y,z) =>{
    console.log(x);
    console.log(y);
    console.log(z);
}

console.log(addThreeNumbers(1,5,5));

const curriedAddThreeNumbers = R.curry(addThreeNumbers)

console.log(curriedAddThreeNumbers(12,3)(6));